﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Model_field.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.Model_field" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>字段管理-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../js/utils.js" type="text/javascript"></script>
    <script src="../js/Model_field.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return CheckForm(this);">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：系统管理 -> 模型管理 -> 编辑字段
            </td>
        </tr>
    </table>
    <table class="table_form">
        <tr>
            <th class=" align_l" colspan="2">
                编辑字段
            </th>
        </tr>
        <tbody>
            <tr class="tr_item">
                <th>
                    标识
                </th>
                <td>
                    <cms:TextBox ID="txtName" runat="server" required="1" prompt="标识" valuelength="20"
                        Width="200"></cms:TextBox>
                    <span class="FontWarn">*</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    字段名
                </th>
                <td>
                    <cms:TextBox ID="txtFieldName" runat="server" required="1" prompt="表字段名" valuelength="20"
                        Width="200"></cms:TextBox>
                    <span class="FontWarn">*</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    字段类型
                </th>
                <td>
                    <cms:DropDownList ID="ddlFieldTypeStr" runat="server" DataTextField="Value" DataValueField="Key">
                    </cms:DropDownList>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    字段长度
                </th>
                <td>
                    <cms:TextBox ID="txtFieldLength" Text="250" runat="server" prompt="字段长度" valuelength="20"
                        ControlValueType="int"></cms:TextBox>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    字段默认值
                </th>
                <td>
                    <cms:TextBox ID="txtDefaultValue" runat="server" prompt="字段默认值" valuelength="100"
                        ControlValueType="string"></cms:TextBox>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    录入类型
                </th>
                <td>
                    <cms:DropDownList ID="ddlFormInputType" runat="server" DataTextField="Name" DataValueField="FormInputTypeId">
                    </cms:DropDownList>
                </td>
            </tr>
            <tr id="trLimit" class="tr_item">
                <th>
                    录入限制
                </th>
                <td>
                    <cms:DropDownList ID="ddlFormInputLimitType" runat="server" DataTextField="Name"
                        DataValueField="FormInputLimitTypeId">
                    </cms:DropDownList>
                </td>
            </tr>
            <tr id="trValueType" class="tr_item">
                <th>
                    录入可选值
                </th>
                <td>
                    <cms:DropDownList ID="ddlFormInputValueType" runat="server" DataTextField="Name"
                        DataValueField="FormInputValueTypeId">
                    </cms:DropDownList>
                </td>
            </tr>
            <tr id="FieldInputPickertr" class="tr_item">
                <th>
                    录入采集器
                </th>
                <td>
                    <cms:DropDownList ID="ddlFieldInputPicker" runat="server">
                    </cms:DropDownList>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr class="tr_item">
                <th>
                    其他
                </th>
                <td>
                    <cms:CheckBox ID="chkIsContribute" Text="允许投稿" runat="server" Visible="False" />
                    <cms:CheckBox ID="chkIsSearch" Text="允许搜索" runat="server" />
                    <cms:CheckBox ID="chkIsCollect" Text="允许采集" runat="server" Visible="False" />
                    <cms:CheckBox ID="chkIsEdit" Text="可编辑" runat="server" />
                </td>
            </tr>
            <tr class="tr_btn">
                <th>
                </th>
                <td>
                    <cms:Button CssClass="button_style" ID="btnSubmit" Text="确定" runat="server" OnClick="btnSubmit_Click" />
                    <input class="button_style" name="reset" onclick="$('#Form').resetForm();" value="清除"
                        type="reset">
                    <input class="button_style" name="reset" onclick="window.location.href='<%=m_strRefer%>'"
                        value="返回" type="reset">
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
